﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001523 RID: 5411
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class WorkbenchReforgeHexAvatarFunc : IMessage<WorkbenchReforgeHexAvatarFunc>, IMessage, IEquatable<WorkbenchReforgeHexAvatarFunc>, IDeepCloneable<WorkbenchReforgeHexAvatarFunc>, IBufferMessage
	{
		// Token: 0x1700442B RID: 17451
		// (get) Token: 0x0600F236 RID: 62006 RVA: 0x00286E43 File Offset: 0x00285043
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<WorkbenchReforgeHexAvatarFunc> Parser
		{
			get
			{
				return WorkbenchReforgeHexAvatarFunc._parser;
			}
		}

		// Token: 0x1700442C RID: 17452
		// (get) Token: 0x0600F237 RID: 62007 RVA: 0x00286E4A File Offset: 0x0028504A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return WorkbenchReforgeHexAvatarFuncReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700442D RID: 17453
		// (get) Token: 0x0600F238 RID: 62008 RVA: 0x00286E5C File Offset: 0x0028505C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return WorkbenchReforgeHexAvatarFunc.Descriptor;
			}
		}

		// Token: 0x0600F239 RID: 62009 RVA: 0x00286E63 File Offset: 0x00285063
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchReforgeHexAvatarFunc()
		{
		}

		// Token: 0x0600F23A RID: 62010 RVA: 0x00286E6C File Offset: 0x0028506C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchReforgeHexAvatarFunc(WorkbenchReforgeHexAvatarFunc other) : this()
		{
			this.intReforgeNumValue_ = other.intReforgeNumValue_;
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this.freeReforgeNum_ = other.freeReforgeNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600F23B RID: 62011 RVA: 0x00286EC4 File Offset: 0x002850C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchReforgeHexAvatarFunc Clone()
		{
			return new WorkbenchReforgeHexAvatarFunc(this);
		}

		// Token: 0x1700442E RID: 17454
		// (get) Token: 0x0600F23C RID: 62012 RVA: 0x00286ECC File Offset: 0x002850CC
		// (set) Token: 0x0600F23D RID: 62013 RVA: 0x00286ED4 File Offset: 0x002850D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int IntReforgeNumValue
		{
			get
			{
				return this.intReforgeNumValue_;
			}
			set
			{
				this.intReforgeNumValue_ = value;
			}
		}

		// Token: 0x1700442F RID: 17455
		// (get) Token: 0x0600F23E RID: 62014 RVA: 0x00286EDD File Offset: 0x002850DD
		// (set) Token: 0x0600F23F RID: 62015 RVA: 0x00286EE5 File Offset: 0x002850E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x17004430 RID: 17456
		// (get) Token: 0x0600F240 RID: 62016 RVA: 0x00286EEE File Offset: 0x002850EE
		// (set) Token: 0x0600F241 RID: 62017 RVA: 0x00286EF6 File Offset: 0x002850F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FreeReforgeNum
		{
			get
			{
				return this.freeReforgeNum_;
			}
			set
			{
				this.freeReforgeNum_ = value;
			}
		}

		// Token: 0x0600F242 RID: 62018 RVA: 0x00286EFF File Offset: 0x002850FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as WorkbenchReforgeHexAvatarFunc);
		}

		// Token: 0x0600F243 RID: 62019 RVA: 0x00286F10 File Offset: 0x00285110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(WorkbenchReforgeHexAvatarFunc other)
		{
			return other != null && (other == this || (this.IntReforgeNumValue == other.IntReforgeNumValue && object.Equals(this.CostData, other.CostData) && this.FreeReforgeNum == other.FreeReforgeNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600F244 RID: 62020 RVA: 0x00286F70 File Offset: 0x00285170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IntReforgeNumValue != 0)
			{
				num ^= this.IntReforgeNumValue.GetHashCode();
			}
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this.FreeReforgeNum != 0U)
			{
				num ^= this.FreeReforgeNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600F245 RID: 62021 RVA: 0x00286FDE File Offset: 0x002851DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600F246 RID: 62022 RVA: 0x00286FE6 File Offset: 0x002851E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600F247 RID: 62023 RVA: 0x00286FF0 File Offset: 0x002851F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.costData_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.CostData);
			}
			if (this.IntReforgeNumValue != 0)
			{
				output.WriteRawTag(16);
				output.WriteInt32(this.IntReforgeNumValue);
			}
			if (this.FreeReforgeNum != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.FreeReforgeNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600F248 RID: 62024 RVA: 0x00287068 File Offset: 0x00285268
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IntReforgeNumValue != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.IntReforgeNumValue);
			}
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this.FreeReforgeNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FreeReforgeNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600F249 RID: 62025 RVA: 0x002870D8 File Offset: 0x002852D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(WorkbenchReforgeHexAvatarFunc other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IntReforgeNumValue != 0)
			{
				this.IntReforgeNumValue = other.IntReforgeNumValue;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			if (other.FreeReforgeNum != 0U)
			{
				this.FreeReforgeNum = other.FreeReforgeNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600F24A RID: 62026 RVA: 0x00287154 File Offset: 0x00285354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600F24B RID: 62027 RVA: 0x00287160 File Offset: 0x00285360
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 16U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.FreeReforgeNum = input.ReadUInt32();
						}
					}
					else
					{
						this.IntReforgeNumValue = input.ReadInt32();
					}
				}
				else
				{
					if (this.costData_ == null)
					{
						this.CostData = new ItemCostData();
					}
					input.ReadMessage(this.CostData);
				}
			}
		}

		// Token: 0x04005F92 RID: 24466
		private static readonly MessageParser<WorkbenchReforgeHexAvatarFunc> _parser = new MessageParser<WorkbenchReforgeHexAvatarFunc>(() => new WorkbenchReforgeHexAvatarFunc());

		// Token: 0x04005F93 RID: 24467
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005F94 RID: 24468
		public const int IntReforgeNumValueFieldNumber = 2;

		// Token: 0x04005F95 RID: 24469
		private int intReforgeNumValue_;

		// Token: 0x04005F96 RID: 24470
		public const int CostDataFieldNumber = 1;

		// Token: 0x04005F97 RID: 24471
		private ItemCostData costData_;

		// Token: 0x04005F98 RID: 24472
		public const int FreeReforgeNumFieldNumber = 10;

		// Token: 0x04005F99 RID: 24473
		private uint freeReforgeNum_;
	}
}
